using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using CS.CleverNotes.Entities;


namespace CS.CleverNotes.Infrastructure
{
    public class CleverNotesContext : DbContext
    {
        public DbSet<Error> Errors { get; set; }
        public DbSet<Todo> ToDo { get; set; }

        public CleverNotesContext(DbContextOptions options) : base(options)
        {
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {

            modelBuilder.Entity<Todo>().Property(p => p.Title);
        }
       
    }
}
